home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #11 / Amiga Plus CD - 2002 - No. 11.iso / Tools / Development / PowerD / alpha / modules / resources / misc.m < prev    next >
Encoding:
Text File  |  2002-10-28  |  840 b   |  21 lines

  1. MODULE 'exec/libraries'
  2. /*
  3.  * Unit number definitions.  Ownership of a resource grants low-level
  4.  * bit access to the hardware registers.  You are still obligated to follow
  5.  * the rules for shared access of the interrupt system (see
  6.  * exec.library/SetIntVector or cia.resource as appropriate).
  7.  */
  8. CONST MR_SERIALPORT=0,  /* Amiga custom chip serial port registers
  9.     (SERDAT,SERDATR,SERPER,ADKCON, and interrupts) */
  10.  MR_SERIALBITS=1,  /* Serial control bits (DTR,CTS, etc.) */
  11.  MR_PARALLELPORT=2,  /* The 8 bit parallel data port
  12.     (CIAAPRA & CIAADDRA only!) */
  13.  MR_PARALLELBITS=3  /* All other parallel bits & interrupts
  14.            (BUSY,ACK,etc.) */
  15. /*
  16.  * Library vector offset definitions
  17.  */
  18. CONST MR_ALLOCMISCRESOURCE=LIB_BASE,     /* -6 */
  19.  MR_FREEMISCRESOURCE=LIB_BASE-LIB_VECTSIZE  /* -12 */
  20. #define MISCNAME  'misc.resource'
  21.